import {baseUrl} from "../constants/url";
import {myReq} from "./utils";

const searchUrl = baseUrl + '/search'

export function searchMusic(searchInput, onSuccess) {
    myReq(searchUrl, {searchInput}, 'GET', onSuccess)
}